(function () {


    /*图表*/
    var initEchart = function (id,x,y) {
        var myChart = echarts.init(document.getElementById(id));
        var option = {
            xAxis: {
                type: 'category',
                data: x
            },
            yAxis: {
                type: 'value',
                name: '吞吐量（万吨）'
            },
            series: [{
                data: y,
                type: 'line',
                smooth: true
            }]
        };
        myChart.setOption(option);
    }

    initEchart('echart-one',
        ['2016-01', '2016-02', '2016-03', '2016-04', '2016-05','2016-06','2016-07'],
        ['800','1000','5800','2800','1800','2000','1000']
    )

})()
